package cn.pfz.mapper;

import cn.pfz.domain.RolePermission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RolePermissionMapper {
    int insert(RolePermission record);

    List<RolePermission> selectAll();

    void deleteByPermission_permission(@Param("id") Long id);

    void deleteByPermission_role(@Param("id") Long id);
}